package com.star.warmwinter.module.home.ui.activity;

import android.databinding.DataBindingUtil;

import com.star.warmwinter.R;
import com.star.warmwinter.common.BaseActivity;
import com.star.warmwinter.databinding.ActivitySplashBinding;
import com.star.warmwinter.module.home.viewCtrl.SplashCtrl;

/**
 * 项目名称：WarmWinter
 * 类描述：
 * 创建人：Johnny
 * 创建时间：2018/6/6 14:29
 */
public class SplashActivity extends BaseActivity {
    private SplashCtrl mSplashCtrl;

    @Override
    public void bindLayout() {
        ActivitySplashBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_splash);
        mSplashCtrl = new SplashCtrl(this,binding);
        binding.setSplashCtrl(mSplashCtrl);
    }

    @Override
    public void doBusiness() {
        mSplashCtrl.playVideo();
    }
}
